<#include "/includes/header.ftl">
<script type="text/javascript">
<!--
	function showLayer( whichLayer,showFlag )
	{
	  var elem, vis;
	  if( document.getElementById ) // this is the way the standards work
	    elem = document.getElementById( whichLayer );
	  else if( document.all ) // this is the way old msie versions work
	      elem = document.all[whichLayer];
	  else if( document.layers ) // this is the way nn4 works
	    elem = document.layers[whichLayer];
	  vis = elem.style;
	  // if the style.display value is blank we try to figure it out here
	  //if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
	  //  vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
	  vis.display = (showFlag)?'block':'none';
	}
//-->
</script>
<script type="text/javascript" src='<@spring.url "/JS/public_smo_scripts.js" />'></script>
<style type="text/css">
	div#subcategory
	{
	  margin: 0px 20px 0px 20px;
	  display: none;
	}
</style>

<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
	<TD width="120" valign="top"><#include "/includes/leftbar.ftl"></TD>	
	<TD valign="top" width="90%">
		<#include "/search/search_box.ftl">
		
		<#assign curr_site_gid="">
		<#if siteCategory?has_content>
			<#assign curr_site_gid=siteCategory.categoryId>
			<#if primarySiteCategoryTrail?has_content>
			<#--articles path-->
			<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
				<TR><TD><b>当前位置</b>&gt;&gt;
				<#list primarySiteCategoryTrail as g>
					<A href='<@spring.url "/listcategory2company.jsp?sgid=${g.categoryId}"/>'>${g.name?default("No-Name")}</A>&gt;&gt;
					</#list><b>供应/制造商:</b>
				</TD></TR>
			</TABLE>		
			</#if>
			
			<#--div ID="subcategory" STYLE="display:none"-->
				<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
					<#if siteChildCategoryListGroups?has_content>
						<TR>
						<TD width="1%" nowrap><B>${siteCategory.name?default("No-Name")}子类:&nbsp;</B></TD>
						<TD>
						<#list siteChildCategoryListGroups as siteChildCategoryList>
							<#list siteChildCategoryList as g>
								<A href='<@spring.url "/listcategory2company.jsp?sgid=${g.categoryId}"/>'>${g.name?default(g.categoryId)}</A>
							</#list>
						</#list>
						</TD>
						</TR>
					</#if>
				</TABLE>		
			<#--/div-->
		</#if>
		
	  <#--List of articles--->		
		<#if site2CategoryGroupList?has_content>
		<TABLE width="100%" border="0" cellpadding="2" cellspacing="0">
			<#list site2CategoryGroupList as site2CategoryList>
					<TR>
				<#list site2CategoryList as s2g>
					<TD valign="top">
						<TABLE><TR>
							<TD valign="center" align="center" width="1%"><A href='<@spring.url "/viewcompanydetail.jsp?ssid=${s2g.site.sysId}&sgid=${curr_site_gid}"/>'><IMG src='<@spring.url "/IMAGES/SITE_MEDIUM.JPG"/>' width="256" height="144"/></A></TD>
							</TR><TR>
							<TD valign="top" align="left"  style="color:#000066;font-family:Arial,sans-serif;font-size:12px;padding:8px;vertical-align:top;"><A href='<@spring.url "/viewcompanydetail.jsp?ssid=${s2g.site.sysId}&sgid=${curr_site_gid}"/>'>${s2g.site.name?default("No-Name")}是个汉字名称</A>&nbsp;&nbsp;${s2g.site.shortDesc?default("No-short-desc")}&nbsp;*****</TD>
							</TR>
						</TABLE>	
					</TD>														
				</#list>
					</TR>
			</#list>
			<TR><TD colspan="6" align="left"><#include "/includes/pagefooter.ftl"></TD></TR>         
		</TABLE>				
		</#if>		
		
	</TD>	
	<TD valign="top"><#include "/includes/rightbar.ftl"></TD>
</TR>
</TABLE>

<#include "/includes/footer.ftl">